import Vue from 'vue'
import App from './App.vue'
import router from './router'
import store from './store'
import ElementUI from 'element-ui'
import 'element-ui/lib/theme-chalk/index.css'
import '/src/assets/css.css'
import VueQuillEditor from 'vue-quill-editor'
import 'quill/dist/quill.core.css'
import 'quill/dist/quill.snow.css'
import 'quill/dist/quill.bubble.css'
//图表插件
import * as echarts from 'echarts';
// 百度插件
import BaiduMap from 'vue-baidu-map'
import JsonExcel from "vue-json-excel";
Vue.use(BaiduMap, {
  ak: 'e3aGAeS1nOWoaEcxNMuC59ppoEPBjARe'
})
Vue.component("downloadExcel", JsonExcel)
Vue.prototype.$echarts=echarts
Vue.use(ElementUI)
Vue.use(VueQuillEditor)

Vue.config.productionTip = false

new Vue({
  created () {
    //刷新时重新给路由返回的角色路由

   const routes =localStorage.getItem('routes')?JSON.parse(localStorage.getItem('routes')):[]
    store.commit('SETROST',routes)
  },
  router,
  store,
  render: h => h(App)
}).$mount('#app')
